/**
 * Copyright (C)
 * FileName: ISysUserService
 * Author:   86151
 * Date:     2019/7/17 10:21
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hand.llq25404.Service;

import com.hand.llq25404.dao.ISysUser;
import com.hand.llq25404.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ISysUserService {

    @Autowired
    private ISysUser iSysUser;

    public long insert(SysUser sysUser){
        long user_id = iSysUser.insertUser(sysUser);
        System.out.println("插入成功：");
        return user_id;
    }

    public void  update(SysUser sysUser){
        iSysUser.updateUser(sysUser);
        System.out.println("修改成功：");
        System.out.println("修改ID为：" + sysUser.getUserId());
    }

    public void delete(long user_id){
        int num = iSysUser.deleteUser(user_id);
        System.out.println("删除成功：");
        System.out.println("删除数量为：" + num);
    }

}
